package cn.lcsjsxy.yxz.kind.comprehensiveexercises.object;

public class GeometricObject {

    //定义两个类，父类GeometricObject代表几何形状，子类Circle代表圆形
    //初始化对象的color属性为"white" ,weight属性为1.0

    protected String color;
    protected double weight;

    public GeometricObject() {
        super();
        this.color = "white";
        this.weight = 1.0;
    }
    public GeometricObject(String color,double weight) {
        this.color = color;
        this.weight = weight;
    }

    public String getColor() {
        return color;
    }
    public void setColor(String color) {
        this.color = color;
    }
    public double getWeight() {
        return weight;
    }
    public void setWeight(double weight) {
        this.weight = weight;
    }
}
